<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="updateRegularInsertionFees.htm" id="form" theme="simple" method="post">
	<table width="100%">
		<tr>
			<td>
				<s:actionmessage cssClass="verdana11greynormal" />
				<s:actionerror cssClass="Note-red" />
			</td>
		</tr>
		<tr>
        	<td height="40" class="sectionheading bottom-border">Regular Insertion Fees</td>
		</tr>
		<tr>
			<td valign="top" class="verdana12blacknormal">
				Please enter the Regular Auctions listing fees. Do not include any
				currency symbols, only digits and the decimal point or comma.
			</td>
		</tr>
		<tr>
			<td height="8"></td>
		</tr>
		<tr>
			<td valign="top" width="100%">
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="Textfiled-border">
					<tbody>
						<tr align="center" bgcolor="#f0f0e1" height="30">
							<td width="10%" align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								#
							</td>
							<td width="15%" align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Starting Price From</b>
							</td>
							<td width="15%" align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Starting Price To</b>
							</td>

							<td width="10%" align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Auction</b>
								<br>
								(total sum)
							</td>
							<td width="15%" align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Fixed Price</b>
								<br>
								(per month)
							</td>
							<td width="10%" align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Shop</b>
								<br>
								(per month)
							</td>
							<td width="15%" align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Wanted</b>
								<br>
								(per month)
							</td>
							<td width="10%" align="center" bgcolor="#E9E9E9" class="verdana12darkgreybold">
								<b>Tender Price</b>
								<br>
								(per month)
							</td>
						</tr>

						<s:iterator value="auctionListingFeesList" status="rowstatus">
							<s:hidden name="auctionListingFeesMap[%{id}].id" value="%{id}" />
							<s:set name="classCSS" value="%{'Textfiled-no-border-odd'}" var="classCSS"></s:set>
							<s:set name="bgColor" value="%{'#FFFFFF'}" var="bgColor"></s:set>

							<s:if test="#rowstatus.even">
								<s:set var="classCSS" value="%{'Textfiled-no-border-even'}"></s:set>
								<s:set var="bgColor" value="%{'#F8F8F8'}"></s:set>
							</s:if>

							<tr>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									&nbsp;
									<b><s:property value="%{#rowstatus.index + 1}" /></b>&nbsp;
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="auctionListingFeesMap[%{id}].startingPriceFrom"
										value="%{startingPriceFrom}" size="15" />
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="auctionListingFeesMap[%{id}].startingPriceTo"
										value="%{startingPriceTo}" size="15" />
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="auctionListingFeesMap[%{id}].auction" value="%{auction}"
										size="10" />
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="auctionListingFeesMap[%{id}].fixedPrice"
										value="%{fixedPrice}" size="15" />
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="auctionListingFeesMap[%{id}].shop" value="%{shop}"
										size="10" />
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="auctionListingFeesMap[%{id}].wanted" value="%{wanted}"
										size="15" />
								</td>
								<td align="center" class="verdana12Greybold" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="auctionListingFeesMap[%{id}].tenderPrice" value="%{tenderPrice}"
										size="10" />
								</td>
							</tr>
						</s:iterator>

					</tbody>
				</table>
			</td>

		</tr>
		<tr>
			<td class="verdana12blacknormal">
				<br>
				Dutch Auctions Maximum Fees:
				<s:textfield theme="simple" cssClass="Textfiled-border" name="miscellaneousFees.dutchAuctionsMaximumFees" value="%{miscellaneousFees.dutchAuctionsMaximumFees}" size="15" />
			</td>
		</tr>
		<tr>
			<td class="verdana12blacknormal">
				Dutch Auctions Maximum Fixed Price Fees:
				<s:textfield theme="simple" cssClass="Textfiled-border" name="miscellaneousFees.dutchAuctionsMaximumFixedPriceFees" value="%{miscellaneousFees.dutchAuctionsMaximumFixedPriceFees}" size="15" />
				<br>
			</td>
		</tr>
		<tr>
			<td height="8"></td>
		</tr>
		<tr>
			<td class="verdana12blacknormal">
				Advertisement Fees (monthly):
				<s:textfield theme="simple" cssClass="Textfiled-border" name="miscellaneousFees.advertisementFees" value="%{miscellaneousFees.advertisementFees}" size="15" />
				<br>
			</td>
		</tr>
		<tr>
			<td class="verdana12blacknormal">
				Company profile Fees (monthly):
				<s:textfield theme="simple" cssClass="Textfiled-border" name="miscellaneousFees.companyProfileFees" value="%{miscellaneousFees.companyProfileFees}" size="15" />
				<br>
			</td>
		</tr>
		<tr>
			<td height="8"></td>
		</tr>
		<tr>
			<td class="verdana12blacknormal">
				<p align="justify">
					<b>Regular Listings<br> </b>The insertion Fee is based on the
					opening value or minimum bid of the seller item.
				</p>
				<p align="justify">
					<b>Dutch Listings<br> </b>The insertion Fee is based upon the
					opening value or minimum bid of the seller item listed for sale
					multiplied by the quantity of items with limited maximum insertion
					fees for Dutch Auctions.
				</p>
			</td>
		</tr>
		<tr>
			<td align="center" width="100%">
				<s:hidden name="miscellaneousFees.id" value="%{miscellaneousFees.id}" />
				<s:hidden name="miscellaneousFees.searchEngineFeeStatus" value="%{miscellaneousFees.searchEngineFeeStatus}" />
				<s:submit theme="simple" type="image" src="../Admin-Images/save-chagnes-button.gif" value="Save Changes" />
				<img onclick="document.getElementById('form').reset();" style="cursor: pointer;" src="../Admin-Images/reset-button.gif" alt="Cancel" />
    			<img onclick="history.go(-1);" style="cursor: pointer;" src="../Admin-Images/cancel_btn.gif" alt="Cancel" />
			</td>
		</tr>
	</table>
</s:form>